Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transform() method to ContourPoint #135

Merged
merged 1 commit into from
May 21, 2021

Conversation

simoncozens
Copy link
Contributor

This applies an AffineTransform matrix to a point. This turns out to be very useful when decomposing mixed contour/component glyphs prior to converting to TTF

@madig
Copy link
Collaborator

madig commented May 16, 2021

@simoncozens
Copy link
Contributor Author

Oh, those are much better than mine. I don't flatten nested components.

It would be good to add some kind of decomposition method to norad::Glyph.

@madig
Copy link
Collaborator

madig commented May 16, 2021

I plan on doing that for #132, but haven't had time yet.

Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@cmyr cmyr merged commit 71557e2 into linebender:master May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants